package com.tools.commons.model;

public class RequestContext {
    private static final ThreadLocal<RequestInfo> context = ThreadLocal.withInitial(RequestInfo::new);

    public static RequestInfo getRequestInfo() {
        return context.get();
    }

    public static void setRequestInfo(RequestInfo requestInfo) {
        context.set(requestInfo);
    }
}
